sampler TextureSampler : register(s0);

float4 main(float2 texCoord : TEXCOORD0) : COLOR0
{
    float4 tex = tex2D(TextureSampler, texCoord);

    tex.rgb = dot(tex.rgb, float3(0.3f, 0.59f, 0.11f));

    return tex;
}

technique
{
    pass
    {
        PixelShader = compile ps_2_0 main();
    }
}
